﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;

namespace EzDesk.DevHelper.EzMLGenerator
{
    public abstract class RegexReplaceProcessor : EzMLProcessor
    {
        public abstract string[] RegexStrs
        {
            get;
        }
        
        public abstract string[] ReplaceStrs
        {
            get;
        }

        public override string Process(string input)
        {
            string source = input;
            for (int i = 0; i < RegexStrs.Length; i++)
            {
                source = Regex.Replace(source, RegexStrs[i], ReplaceStrs[i]);
            }
            return source;
        }
    }
}
